//
//  CAnimationPlayW.h
//  Cocos2DEditor
//
//  Created by waver on 10-6-21.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "CActionSpriteW.h"

@interface CAnimationPlayW : NSObject {
	//role file name 
	NSString * __fileName;
	
	//the Role instance read frome the __fileName;
	void *		__currentRole;
	
	NSMutableArray * __FrameArray;
	
	
	NSMutableArray * __imageNameArray;
	
	NSMutableArray * __timeArray;
	
	CCSprite * __MainSprite;
	
	NSMutableArray * __SpriteArray;
	
}
@property (nonatomic,readwrite,retain)NSMutableArray * __imageNameArray;

@property (nonatomic,readwrite)void * __currentRole;


-(id)InitAction:(NSString*)fileName;

-(void)InitArray;

-(void)dealloc;

//input the animation Index in editor ,back the animation;doubleTime :control the play frame speed 
-(CActionSpriteW*)CreateActionSprite: (int)aniIndex doubleTime:(int)times  cyc:(BOOL)IsCys; 


@end
